<?php

class Model_Orm_Moviegenre extends \Orm\Model
{
        protected static $_primary_key = array('id');
	protected static $_properties = array(
		'id',
		'movie_id',
		'genre_id'
	);
        
        protected static $_belongs_to = array(
            'movie' => array(
                'key_from' => 'movie_id',
                'model_to' => 'Model_Orm_Movie',
                'key_to' => 'id'),
            'genre' => array(
                'key_from' => 'genre_id',
                'model_to' => 'Model_Orm_Genre',
                'key_to' => 'id'),
        );
        
	protected static $_table_name = 'movie_genres';

}
